package org.example.cassell_client.service;

import org.example.cassell_client.entity.vo.Bulletin_Content_vo;
import com.github.pagehelper.PageInfo;
import org.example.cassell_client.service.fallback.BulletinClientFallbackFactory;
import org.example.entity.Base.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "bulletin", url = "http://localhost:8082/dc", fallbackFactory = BulletinClientFallbackFactory.class)
public interface BulletinServiceClient {
    @GetMapping("/bulletin/list")
    Result<PageInfo> list(@RequestParam(name="PageNumber", defaultValue = "1")int PageNumber, @RequestParam(name="PageSize", defaultValue = "5")int PageSize);
    @GetMapping("/bulletin/getContent")
    public Bulletin_Content_vo getContent(Integer id);
    @GetMapping("/bulletin/bulletinl")
    public List bulletinl();
}
